/*
 * DiceRoller.java
 *
 * Created on 28 de enero de 2008, 09:32
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package diceroller;

/**
 *
 * @author juan
 */
public abstract class DiceRoller {
    
    public static int doRoll(int numberOfFaces){
       int roll=new java.util.Random().nextInt(numberOfFaces);
       if(roll==0)roll=numberOfFaces;
       return roll;
    }
    
}
